﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AccountingLibrary
{
    public class GeneralLedger
    {
        public GeneralLedger(string generalname)
        {
            journaldetails = new List<JournalEntityDetailBase>();
            AccountBase ledgeraccount = new AccountBase();
            ledgeraccount.name=generalname;
            this.account = ledgeraccount;
        }
        public GeneralLedger(AccountBase account)
        {
            this.account = account;
        }
        public GeneralLedger()
        {

        }
        public string accountname { get; set; }
        public AccountBase account { get; set; }
        public List<JournalEntityDetailBase> journaldetails { get; set; }
        public double FromValue { get; set; }
        public double ToValue { get; set; }
    }
}
